import React from 'react'

class PlantInfo extends React.Component {
    constructor(props) {
        super(props)
    }
    render() {
        return <>
            <h1>{this.props.name}</h1>
            <p>{this.props.description}</p>
            {this.props.activities.length > 0 ? <ul>
                {
                    this.props.activities.map((item, index) => {
                        return <li key={index}>{item}</li>
                    })
                }
            </ul> : '暂时没有推荐的活动'}

        </>
    }
}

export default PlantInfo